﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using VitCode.Castle.Helper;
using VitCode.Web.UI.WebControls;

namespace AMS.Web
{
    public partial class test : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        { 
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Dog dog = new Dog(100);
            dog.DogAddr = 0;            // The address wrote
            dog.DogBytes = 10;            // The number of bytes wrote

            string str = TextBox1.Text;

            dog.DogData = System.Text.Encoding.Default.GetBytes(str);


            dog.WriteDog();
            MessageBox.Show("密码已成功写入加密狗！");
        }
 


    
       
    }
}